<%@ page language="java" import="dao.*" pageEncoding="UTF-8" %>
<%@ page language="java" import="java.util.*" %>
<%@page import="util.*" %>


<%@ include file="head.jsp" %>

<div style="padding: 10px">

    <% HashMap map = Query.make("xiadan").where("id", request.getParameter("id")).find(); %>
    <div class="admin-detail">
        <table class="table table-detail">
            <tr>

                <td width="180">
                    商品编号
                </td>
                <td><%= map.get("shangpinbianhao") %>
                </td>

                <td width="180">
                    商品名称
                </td>
                <td><%= map.get("shangpinmingcheng") %>
                </td>
            </tr>
            <tr>

                <td width="180">
                    售价
                </td>
                <td><%= map.get("shoujia") %>
                </td>

                <td width="180">
                    商品分类
                </td>
                <td><%
                    HashMap mapshangpinfenlei13 = new CommDAO().find("SELECT fenleimingcheng FROM shangpinfenlei where id='" + map.get("shangpinfenlei") + "'");
                %><%= mapshangpinfenlei13.get("fenleimingcheng") %>
                </td>
            </tr>
            <tr>

                <td width="180">
                    发布人
                </td>
                <td><%= map.get("faburen") %>
                </td>

                <td width="180">
                    联系电话
                </td>
                <td><%= map.get("lianxidianhua") %>
                </td>
            </tr>
            <tr>

                <td width="180">
                    交易时间
                </td>
                <td><%= map.get("jiaoyishijian") %>
                </td>

                <td width="180">
                    交易地点
                </td>
                <td><%= map.get("jiaoyididian") %>
                </td>
            </tr>
            <tr>



                <td width="180">
                    下单人
                </td>
                <td><%= map.get("xiadanren") %>
                </td>
            </tr>
            <tr>

            </tr>
        </table>
    </div>


    <div class="button-list">
        <div class="">
            <button onclick="history.go(-1);"
                    style="background: #07de19; border: 1px solid #9a9a9a;border-top-width: 2px;border-left: 2px; ">返回
            </button>
            <button onclick="window.print()"
                    style="background: #4961de; border: 1px solid #9a9a9a;border-top-width: 2px;border-left: 2px; ">打印本页
            </button>
        </div>
    </div>
</div>
<%@ include file="foot.jsp" %>
